.class public Lcom/waiqin365/compons/c/m;
.super Ljava/lang/Object;


# static fields
.field private static a:D

.field private static b:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    const-wide v0, 0x404a2e1077c7044eL    # 52.35987755982988

    sput-wide v0, Lcom/waiqin365/compons/c/m;->a:D

    const-string/jumbo v0, ""

    sput-object v0, Lcom/waiqin365/compons/c/m;->b:Ljava/lang/String;

    return-void
.end method

.method public static a(DDIDDI)D
    .locals 8

    new-instance v0, Lcom/baidu/mapapi/utils/DistanceUtil;

    invoke-direct {v0}, Lcom/baidu/mapapi/utils/DistanceUtil;-><init>()V

    const/4 v0, 0x2

    new-array v0, v0, [D

    invoke-static {p0, p1, p2, p3, p4}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v0

    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    const/4 v2, 0x0

    aget-wide v2, v0, v2

    const/4 v4, 0x1

    aget-wide v4, v0, v4

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static/range {p5 .. p9}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v0

    new-instance v2, Lcom/baidu/mapapi/model/LatLng;

    const/4 v3, 0x0

    aget-wide v4, v0, v3

    const/4 v3, 0x1

    aget-wide v6, v0, v3

    invoke-direct {v2, v4, v5, v6, v7}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {v1, v2}, Lcom/baidu/mapapi/utils/DistanceUtil;->getDistance(Lcom/baidu/mapapi/model/LatLng;Lcom/baidu/mapapi/model/LatLng;)D

    move-result-wide v0

    return-wide v0
.end method

.method static synthetic a(Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    sput-object p0, Lcom/waiqin365/compons/c/m;->b:Ljava/lang/String;

    return-object p0
.end method

.method public static a(Lcom/baidu/mapapi/model/LatLng;Lcom/baidu/mapapi/model/LatLng;Landroid/content/Context;)V
    .locals 2

    new-instance v0, Lcom/baidu/mapapi/navi/NaviParaOption;

    invoke-direct {v0}, Lcom/baidu/mapapi/navi/NaviParaOption;-><init>()V

    const-string/jumbo v1, "\u4ece\u8fd9\u91cc\u5f00\u59cb"

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/navi/NaviParaOption;->startName(Ljava/lang/String;)Lcom/baidu/mapapi/navi/NaviParaOption;

    const-string/jumbo v1, "\u5230\u8fd9\u91cc\u7ed3\u675f"

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/navi/NaviParaOption;->endName(Ljava/lang/String;)Lcom/baidu/mapapi/navi/NaviParaOption;

    invoke-virtual {v0, p0}, Lcom/baidu/mapapi/navi/NaviParaOption;->startPoint(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/navi/NaviParaOption;

    invoke-virtual {v0, p1}, Lcom/baidu/mapapi/navi/NaviParaOption;->endPoint(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/navi/NaviParaOption;

    :try_start_0
    invoke-static {v0, p2}, Lcom/baidu/mapapi/navi/BaiduMapNavigation;->openBaiduMapNavi(Lcom/baidu/mapapi/navi/NaviParaOption;Landroid/content/Context;)Z

    move-result v1

    if-nez v1, :cond_0

    invoke-static {v0, p2}, Lcom/baidu/mapapi/navi/BaiduMapNavigation;->openWebBaiduMapNavi(Lcom/baidu/mapapi/navi/NaviParaOption;Landroid/content/Context;)V
    :try_end_0
    .catch Lcom/baidu/mapapi/navi/BaiduMapAppNotSupportNaviException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v1

    invoke-static {v0, p2}, Lcom/baidu/mapapi/navi/BaiduMapNavigation;->openWebBaiduMapNavi(Lcom/baidu/mapapi/navi/NaviParaOption;Landroid/content/Context;)V

    goto :goto_0

    :catch_1
    move-exception v0

    goto :goto_0
.end method

.method public static a(DD)[D
    .locals 10

    const/4 v0, 0x2

    new-array v0, v0, [D

    mul-double v2, p0, p0

    mul-double v4, p2, p2

    add-double/2addr v2, v4

    invoke-static {v2, v3}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v2

    const-wide v4, 0x3ef4f8b588e368f1L    # 2.0E-5

    sget-wide v6, Lcom/waiqin365/compons/c/m;->a:D

    mul-double/2addr v6, p2

    invoke-static {v6, v7}, Ljava/lang/Math;->sin(D)D

    move-result-wide v6

    mul-double/2addr v4, v6

    add-double/2addr v2, v4

    invoke-static {p2, p3, p0, p1}, Ljava/lang/Math;->atan2(DD)D

    move-result-wide v4

    const-wide v6, 0x3ec92a737110e454L    # 3.0E-6

    sget-wide v8, Lcom/waiqin365/compons/c/m;->a:D

    mul-double/2addr v8, p0

    invoke-static {v8, v9}, Ljava/lang/Math;->cos(D)D

    move-result-wide v8

    mul-double/2addr v6, v8

    add-double/2addr v4, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->cos(D)D

    move-result-wide v6

    mul-double/2addr v6, v2

    const-wide v8, 0x3f7a9fbe76c8b439L    # 0.0065

    add-double/2addr v6, v8

    invoke-static {v4, v5}, Ljava/lang/Math;->sin(D)D

    move-result-wide v4

    mul-double/2addr v2, v4

    const-wide v4, 0x3f789374bc6a7efaL    # 0.006

    add-double/2addr v2, v4

    const/4 v1, 0x1

    aput-wide v6, v0, v1

    const/4 v1, 0x0

    aput-wide v2, v0, v1

    return-object v0
.end method

.method public static a(DDI)[D
    .locals 8

    const/4 v6, 0x1

    const/4 v0, 0x2

    new-array v0, v0, [D

    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    new-instance v2, Lcom/baidu/mapapi/utils/CoordinateConverter;

    invoke-direct {v2}, Lcom/baidu/mapapi/utils/CoordinateConverter;-><init>()V

    invoke-virtual {v2, v1}, Lcom/baidu/mapapi/utils/CoordinateConverter;->coord(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/utils/CoordinateConverter;

    if-ne p4, v6, :cond_0

    sget-object v1, Lcom/baidu/mapapi/utils/CoordinateConverter$CoordType;->GPS:Lcom/baidu/mapapi/utils/CoordinateConverter$CoordType;

    invoke-virtual {v2, v1}, Lcom/baidu/mapapi/utils/CoordinateConverter;->from(Lcom/baidu/mapapi/utils/CoordinateConverter$CoordType;)Lcom/baidu/mapapi/utils/CoordinateConverter;

    :goto_0
    invoke-virtual {v2}, Lcom/baidu/mapapi/utils/CoordinateConverter;->convert()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v1

    const/4 v2, 0x0

    iget-wide v4, v1, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    aput-wide v4, v0, v2

    iget-wide v2, v1, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    aput-wide v2, v0, v6

    return-object v0

    :cond_0
    sget-object v1, Lcom/baidu/mapapi/utils/CoordinateConverter$CoordType;->COMMON:Lcom/baidu/mapapi/utils/CoordinateConverter$CoordType;

    invoke-virtual {v2, v1}, Lcom/baidu/mapapi/utils/CoordinateConverter;->from(Lcom/baidu/mapapi/utils/CoordinateConverter$CoordType;)Lcom/baidu/mapapi/utils/CoordinateConverter;

    goto :goto_0
.end method

.method public static b(DD)[D
    .locals 12

    const/4 v0, 0x2

    new-array v0, v0, [D

    const-wide v2, 0x3f7a9fbe76c8b439L    # 0.0065

    sub-double v2, p0, v2

    const-wide v4, 0x3f789374bc6a7efaL    # 0.006

    sub-double v4, p2, v4

    mul-double v6, v2, v2

    mul-double v8, v4, v4

    add-double/2addr v6, v8

    invoke-static {v6, v7}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v6

    const-wide v8, 0x3ef4f8b588e368f1L    # 2.0E-5

    sget-wide v10, Lcom/waiqin365/compons/c/m;->a:D

    mul-double/2addr v10, v4

    invoke-static {v10, v11}, Ljava/lang/Math;->sin(D)D

    move-result-wide v10

    mul-double/2addr v8, v10

    sub-double/2addr v6, v8

    invoke-static {v4, v5, v2, v3}, Ljava/lang/Math;->atan2(DD)D

    move-result-wide v4

    const-wide v8, 0x3ec92a737110e454L    # 3.0E-6

    sget-wide v10, Lcom/waiqin365/compons/c/m;->a:D

    mul-double/2addr v2, v10

    invoke-static {v2, v3}, Ljava/lang/Math;->cos(D)D

    move-result-wide v2

    mul-double/2addr v2, v8

    sub-double v2, v4, v2

    invoke-static {v2, v3}, Ljava/lang/Math;->cos(D)D

    move-result-wide v4

    mul-double/2addr v4, v6

    invoke-static {v2, v3}, Ljava/lang/Math;->sin(D)D

    move-result-wide v2

    mul-double/2addr v2, v6

    const/4 v1, 0x1

    aput-wide v4, v0, v1

    const/4 v1, 0x0

    aput-wide v2, v0, v1

    return-object v0
.end method

.method public static c(DD)Ljava/lang/String;
    .locals 2

    const-string/jumbo v0, ""

    sput-object v0, Lcom/waiqin365/compons/c/m;->b:Ljava/lang/String;

    new-instance v0, Lcom/waiqin365/compons/c/n;

    invoke-direct {v0, p0, p1, p2, p3}, Lcom/waiqin365/compons/c/n;-><init>(DD)V

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/n;->start()V

    const-wide/16 v0, 0x1f40

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    sget-object v0, Lcom/waiqin365/compons/c/m;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-wide/16 v0, 0x1388

    :try_start_1
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_1

    :cond_0
    :goto_1
    sget-object v0, Lcom/waiqin365/compons/c/m;->b:Ljava/lang/String;

    return-object v0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_0

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_1
.end method
